<?php
/**
 * 常见问题
 */
namespace App\Controller\Member;
use Common\Controller\App\SignController;
use Common\Model\ProblemModel;

class ProblemController extends SignController{

    /**
     * 常见问题列表
     */
    public function index(){
        $page = I('param.page')?I('param.page'):1;
        $limit = I('param.limit')?I('param.limit'):20;
        $num = ($page-1)*$limit;
        $model = new ProblemModel();
        $list = $model->order("create_time asc")->limit($num,$limit)->select();
        $this->ajaxReturn(['code'=>200,'list'=>$list]);
    }
}